import React from "react";
import { connect } from "react-redux";

import "./Test.css";

const Test = props => {
    return (
        <div className="test-div">{props.label}</div>
    );
};

const mapStateToProps = state => {
    return {
        view: state.view,
        label: state.view ? "ok" : "xxxxxxxxxxxxxxxxxx"
    };
};

export default connect(
    mapStateToProps,
    null
)(Test);